home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_c
/
recio214.zip
/
PORTABLE
< prev
next >
Wrap
Text File
|
1996-06-14
|
2KB
|
64 lines
This file lists changes to recio in order to compile it on other
compilers. These changes are passed along to help you get the
recio library up and running quickly, but have not been tested by
the recio author nor guaranteed by the contributor. Contributor's
changes may not have been tested with the latest version of recio.
*** MICROSOFT VISUAL C++ ***
From: jamesd@freenet.vancouver.bc.ca (James Davidson)
Thu Jun 29 13:18:52 1995
Here are the changes I had to make to recio.h to make the library
using the MS Visual C++ 1.5 compiler.
I added the #elif section to the compiler dependencies section
as follows:
/* compiler dependencies */
#if defined (__BORLANDC__)
#define NSBUFSIZ 34 /* string buffer sized for ltoa, dtoa, etc */
#ifndef TIME_T_MIN
#define TIME_T_MIN ((time_t)0)
#endif
#ifndef TIME_T_MAX
#ifndef LONG_MAX
#include <limits.h>
#endif
#define TIME_T_MAX ((time_t)LONG_MAX)
#endif
/*
** Additions start here **
*/
#elif defined _MSC_VER /* _MSC_VER is defined for MS compilers */
#define NSBUFSIZ 34 /* I just copied this -- not researched */
#ifndef TIME_T_MIN
#define TIME_T_MIN ((time_t)0)
#endif
#ifndef TIME_T_MAX
#ifndef LONG_MAX
#include <limits.h>
#endif
#define TIME_T_MAX ((time_t)LONG_MAX)
#endif
#define ltoa _ltoa /* Functions provided, just given different */
#define ultoa _ultoa /* names to comply with ansi standard */
#define stdprn _stdprn /* Ditto for this variable */
/*
** End of additions **
*/
#else
#error For this compiler, you need to set:
#error (1) NSBUFSIZ. See DESIGN.TXT section 3.6.
#error (2) TIME_T_MIN & TIME_T_MAX. See DESIGN.TXT section 3.5.
#endif